package com.guslegend.service;

import com.guslegend.enums.CouponCategoryEnum;
import com.guslegend.model.CouponDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guslegend.util.JsonData;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author guslegend
 * @since 2025-05-30
 */
public interface CouponService {

    /**
     * 分页查询优惠券列表
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> pageCouponActivity(int page, int size);

    JsonData addCoupon(long couponId, CouponCategoryEnum promotion) throws InterruptedException;
}

